<!doctype html>
<html>
<head>
    <title>{$INI['system']['sitename']} {$city['name']}</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="/css/style.css">
    <link rel="stylesheet" href="/css/font-awesome.min-4.3.0.css">
	<script src="/js/jquery.min-2.1.3.js" type="text/javascript"></script>
</head>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<body>
<script>
  wx.config({
    debug: false,
    appId: '{$signPackage["appId"]}',
    timestamp: {$signPackage["timestamp"]},
    nonceStr: '{$signPackage["nonceStr"]}',
    signature: '{$signPackage["signature"]}',
    jsApiList: [
      'onMenuShareTimeline','onMenuShareAppMessage'
    ]
  });

  wx.ready(function () {
		 <!--{if !empty($INI['system']['secsite']) }-->
		 wx.onMenuShareTimeline({
			title: '{$team[title]}', // 分享标题
			link: '{$INI[system][wwwprefix]}{$INI[system][secsite]}team.php?id={$team["id"]}&rmid={$mid}', // 分享链接
			imgUrl: '${team_image($team[image])}', // 分享图标
			success: function () { 
				// 用户确认分享后执行的回调函数
			},
			cancel: function () { 
				// 用户取消分享后执行的回调函数
			}
		});
		
		wx.onMenuShareAppMessage({
			title: '{$team[title]}', // 分享标题
			desc: '需要您的加入-{$team[title]}', // 分享描述
			link: '{$INI[system][wwwprefix]}{$INI[system][secsite]}team.php?id={$team["id"]}&rmid={$mid}', // 分享链接
			imgUrl: '${team_image($team[image])}', // 分享图标
			type: '', // 分享类型,music、video或link，不填默认为link
			dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
			success: function () { 
				// 用户确认分享后执行的回调函数
			},
			cancel: function () { 
				// 用户取消分享后执行的回调函数
			}
		});
		 <!--{else}-->
		 wx.onMenuShareTimeline({
			title: '{$team[title]}', // 分享标题
			link: '{$INI[system][wwwprefix]}team.php?id={$team["id"]}&rmid={$mid}', // 分享链接
			imgUrl: '${team_image($team[image])}', // 分享图标
			success: function () { 
				// 用户确认分享后执行的回调函数
			},
			cancel: function () { 
				// 用户取消分享后执行的回调函数
			}
		});
		
		wx.onMenuShareAppMessage({
			title: '{$team[title]}', // 分享标题
			desc: '需要您的加入-{$team[title]}', // 分享描述
			link: '{$INI[system][wwwprefix]}team.php?id={$team["id"]}&rmid={$mid}', // 分享链接
			imgUrl: '${team_image($team[image])}', // 分享图标
			type: '', // 分享类型,music、video或link，不填默认为link
			dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
			success: function () { 
				// 用户确认分享后执行的回调函数
			},
			cancel: function () { 
				// 用户取消分享后执行的回调函数
			}
		});
		 <!--{/if}-->
		
  });
</script>

<!--{if $session_notice=Session::Get('error',true)}-->
<script>
alert('{$session_notice}');
</script>
<!--{/if}-->
<!--{if $team['max_number'] <= 0}-->
<script>
alert('该商品库存不足');
</script>
<!--{/if}-->
    <div class="container" style="padding: 0;">
        <section class="main-view">
            <div id="focus" class="focus goods-focus ect-padding-lr ect-margin-tb">
                <div class="hd">
                    <ul>
						
                    </ul>
                </div>
                <div class="bd">
                    <ul>
						<li ><img src="${team_image($team['image'])}"/></li>
						<!--{if $team['image1']}-->
							<li><img src="${team_image($team['image1'])}" /></li>
						<!--{/if}-->
						<!--{if $team['image2']}-->
							<li><img src="${team_image($team['image2'])}" /></li>
						<!--{/if}-->
                    </ul>
                </div>
            </div>
            <div class="tm">
                <div class="td2">
                    <div class="td2_name">{$team['title']}</div>
                    <div class="td2_cx">{$team['summary']}</div>
					<div class="td2_cx">{$team['detail']}</div>
					
                    <div class="td2_info">
                        <div class="td2_price">市场价：<b id="market_price">${moneyit($team['market_price'])}</b> 
						<span>已售：<i id="sold_quantity">{$team['now_number']}</i>件</span></div>
                        <div class="td2_num">支付开团并邀请<span id="tuan_more_need_number">{$team['min_number']-1}</span>人参团，人数不足自动退款，详见下方拼团玩法</div>
                    </div>
                </div>
                <div class="kt">
                    <a id="tuan_more_btn" class="kt_item" href="/team/buy.php?id={$team['id']}&act=pin&{$pin_id}">
                        <div class="kt_price"><b id="tuan_more_price"></b><i>${moneyit($team['pin_price'])} / </i>件</div>
                        <div class="kt_btn"><b id="tuan_more_number">{$team['min_number']}人团购</b></div>
                    </a>
                    <a id="tuan_one_btn" class="kt_item kt_item_buy" href="/team/buy.php?id={$team['id']}">
                        <div class="kt_price"><b id="tuan_one_price"></b><i>${moneyit($team['team_price'])} / </i>件</div>
                        <div class="kt_btn" id="tuan_one_number">单独购买</div>
                    </a>
                </div>
            </div>
            <div class="step">
                <div class="step_hd">
                    拼团玩法<a class="step_more" href="/help/zuitu.php">查看详情</a>
                </div>
                <div id="footItem" class="step_list">
                    <div class="step_item step_item_on">
                        <div class="step_num">1</div>
                        <div class="step_detail">
                            <p class="step_tit">选择
                                <br>心仪商品</p>
                        </div>
                    </div>
                    <div class="step_item ">
                        <div class="step_num">2</div>
                        <div class="step_detail">
                            <p class="step_tit">支付开团
                                <br>或参团</p>
                        </div>
                    </div>
                    <div class="step_item ">
                        <div class="step_num">3</div>
                        <div class="step_detail">
                            <p class="step_tit">等待好友
                                <br>参团支付</p>
                        </div>
                    </div>
                    <div class="step_item">
                        <div class="step_num">4</div>
                        <div class="step_detail">
                            <p class="step_tit">达到人数
                                <br>团购成功</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
</body>
<script src="js/TouchSlide.1.1.js"></script>
<script type="text/javascript">
	TouchSlide({ 
		slideCell:"#focus",
		titCell:".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
		mainCell:".bd ul",
interTime:'30000',		
		effect:"left", 
		autoPlay:true,//自动播放
		autoPage:true, //自动分页
		switchLoad:"_src" //切换加载，真实图片路径为"_src" 
	});
	$(function(){
		//setTimeout("hidetip()",3000);
	})
	function hidetip() 
	{ 
		//$('#sysmsg-error').fadeOut();
	}
</script>
<div style="height:52px;"></div>
<!--{include footer}-->
</html>